package com.tte.common.designpattern.command;

/**
 * @PackageName: com.tte.common.designpattern.command
 * @ClaseName: SellStock
 * @Description: SellStock
 * @Author: DongWH
 * @Date: 2022/3/24 10:30
 * @params *@params $
 */
public class SellStock implements Order {
    private Stock abcStock;

    public SellStock(Stock abcStock){
        this.abcStock = abcStock;
    }

    public void execute() {
        abcStock.sell();
    }
}